package unit;

import java.util.ArrayList;

public class Function {
    private String name;
    private String retType;
    private int numberOfParam;
    private ArrayList<Integer> paramsType;

    public Function(String name, String retType) {
        this.name = name;
        this.retType = retType;
        this.numberOfParam = 0;
        this.paramsType = new ArrayList<>();
    }

    public String getName() {
        return name;
    }

    public String getRetType() {
        return retType;
    }

    public int getNumberOfParam() {
        return numberOfParam;
    }

    public ArrayList<Integer> getParamsType() {
        return paramsType;
    }

    public void addParam(Integer paramType) {
        numberOfParam++;
        paramsType.add(paramType);
    }
}
